package user;

import java.io.Serializable;
import java.sql.Date;

public class RendezVousDTO implements Serializable{
	
	private static final long serialVersionUID = 1L;
	
	private Integer id_Rdv;
	private Date dateDebut_Rdv;
	private Date dateFin_Rdv;
	private int duree_Rdv;
	private Integer id_Cli;
	
//	private String nom_Cli;
//	private String prenom_Cli;
//	private String heure_Deb;
//	private String heure_Fin;
//	private String libelle_Prod;
	
	public RendezVousDTO() {
		super();
		// TODO Auto-generated constructor stub
	}

	

	public RendezVousDTO(Integer id_Rdv, Date dateDebut_Rdv, Date dateFin_Rdv,
			int duree_Rdv, Integer id_Cli) {
		super();
		this.id_Rdv = id_Rdv;
		this.dateDebut_Rdv = dateDebut_Rdv;
		this.dateFin_Rdv = dateFin_Rdv;
		this.duree_Rdv = duree_Rdv;
		this.id_Cli = id_Cli;
	}



	public Integer getId_Rdv() {
		return id_Rdv;
	}

	public void setId_Rdv(Integer id_Rdv) {
		this.id_Rdv = id_Rdv;
	}

	public Date getDateDebut_Rdv() {
		return dateDebut_Rdv;
	}

	public void setDateDebut_Rdv(Date dateDebut_Rdv) {
		this.dateDebut_Rdv = dateDebut_Rdv;
	}

	public Date getDateFin_Rdv() {
		return dateFin_Rdv;
	}

	public void setDateFin_Rdv(Date dateFin_Rdv) {
		this.dateFin_Rdv = dateFin_Rdv;
	}

	public int getDuree_Rdv() {
		return duree_Rdv;
	}

	public void setDuree_Rdv(int duree_Rdv) {
		this.duree_Rdv = duree_Rdv;
	}

	public Integer getId_Cli() {
		return id_Cli;
	}

	public void setId_Cli(Integer id_Cli) {
		this.id_Cli = id_Cli;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}



	@Override
	public String toString() {
		return "RendezVousDTO [id_Rdv=" + id_Rdv + ", dateDebut_Rdv="
				+ dateDebut_Rdv + ", dateFin_Rdv=" + dateFin_Rdv
				+ ", duree_Rdv=" + duree_Rdv + ", id_Cli=" + id_Cli + "]";
	}



	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((dateDebut_Rdv == null) ? 0 : dateDebut_Rdv.hashCode());
		result = prime * result
				+ ((dateFin_Rdv == null) ? 0 : dateFin_Rdv.hashCode());
		result = prime * result + duree_Rdv;
		result = prime * result + ((id_Cli == null) ? 0 : id_Cli.hashCode());
		result = prime * result + ((id_Rdv == null) ? 0 : id_Rdv.hashCode());
		return result;
	}



	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		RendezVousDTO other = (RendezVousDTO) obj;
		if (dateDebut_Rdv == null) {
			if (other.dateDebut_Rdv != null)
				return false;
		} else if (!dateDebut_Rdv.equals(other.dateDebut_Rdv))
			return false;
		if (dateFin_Rdv == null) {
			if (other.dateFin_Rdv != null)
				return false;
		} else if (!dateFin_Rdv.equals(other.dateFin_Rdv))
			return false;
		if (duree_Rdv != other.duree_Rdv)
			return false;
		if (id_Cli == null) {
			if (other.id_Cli != null)
				return false;
		} else if (!id_Cli.equals(other.id_Cli))
			return false;
		if (id_Rdv == null) {
			if (other.id_Rdv != null)
				return false;
		} else if (!id_Rdv.equals(other.id_Rdv))
			return false;
		return true;
	}

	

}
